home *** CD-ROM | disk | FTP | other *** search
/ Champak 103 / Vol 103.iso / games / scuba.swf / scripts / DefineSprite_283 / frame_29 / DoAction.as
Text File  |  2010-03-13  |  532b  |  24 lines

  1. if(15 < _root.gTimeCounter)
  2. {
  3.    if(0 < _root.gOxygenStatus)
  4.    {
  5.       _root.gOxygenStatus--;
  6.       _root.oxygenGauge.gotoAndStop("oxy" + _root.gOxygenStatus);
  7.       vOxyBegin = Math.round(Number(getTimer() / 1000));
  8.       if(_root.LOW_OXYGEN >= _root.gOxygenStatus)
  9.       {
  10.          _root.lowOxyWarning.gotoAndStop("warning");
  11.       }
  12.       else
  13.       {
  14.          _root.lowOxyWarning.gotoAndStop("base");
  15.       }
  16.       gotoAndPlay(10);
  17.    }
  18.    else
  19.    {
  20.       _root.fnEndGame();
  21.       gotoAndStop(1);
  22.    }
  23. }
  24.